const koaRouter = require('@koa/router')
const Cuser = require('../controller/user')
const CBroad = require('../controller/broad')
const CGoods = require('../controller/goods')
const CLive = require('../controller/live')

const router = new koaRouter()

const VERSION = '/api/v1'

router
.post(VERSION + '/user/login', Cuser.login)
.post(VERSION + '/broad/list', CBroad.broadList)
.post(VERSION + '/goods/list', CGoods.list)
.post(VERSION + '/live/list', CLive.list)


module.exports = router

